const data =[
    [0.011084097, 0.010925814, 0.010775992, 0.010603132, 0.01042581, 0.010249055, 0.010074672, 0.009892466, 0.009710168, 0.009531287, 0.009398546, 0.009382197, 0.009494275, 0.009625592, 0.009696594, 0.009632548, 0.00942225, 0.009137099, 0.008808776, 0.008482804, 0.008197758, 0.007942322, 0.007709757, 0.007492193, 0.007302089, 0.007155482, 0.007004377, 0.006851081, 0.00666636, 0.00642613],
    [0.0000145944, 0.0000149825, 0.0000153426, 0.0000156543, 0.0000158982, 0.0000160712, 0.0000161951, 0.0000163098, 0.0000164083, 0.0000164924, 0.0000165665, 0.0000166565, 0.000016765, 0.0000168678, 0.0000169349, 0.0000169576, 0.0000169045, 0.0000167895, 0.0000166442, 0.0000164992, 0.0000164085, 0.0000163593, 0.0000163204, 0.0000162745, 0.0000161891, 0.0000160645, 0.0000154597, 0.0000148911, 0.0000147584, 0.0000146567],
    [0.005749381, 0.005524838, 0.005323754, 0.005150215, 0.005006792, 0.004898778, 0.004821323, 0.004759469, 0.004709129, 0.004667832, 0.004635224, 0.004584337, 0.004502618, 0.004411562, 0.004332251, 0.004287751, 0.004269083, 0.004248216, 0.004225982, 0.004200149, 0.004167362, 0.004128747, 0.004084275, 0.00403505, 0.003979744, 0.003921702, 0.003803249, 0.003684632, 0.003602058, 0.003505609],
    [0.082612441, 0.083614685, 0.084485262, 0.085209045, 0.085752568, 0.086147179, 0.08632702, 0.086336313, 0.086269924, 0.086173511, 0.086128781, 0.085951763, 0.085556653, 0.085128688, 0.084781476, 0.084687074, 0.084810121, 0.08499256, 0.085243173, 0.085548548, 0.085911861, 0.086417396, 0.087067153, 0.087762689, 0.088406975, 0.088868291, 0.088454654, 0.088108535, 0.08906698, 0.090722323],
    [0.00000782187, 0.00000789781, 0.00000798498, 0.00000807747, 0.00000816624, 0.00000825665, 0.00000835527, 0.00000846989, 0.00000858456, 0.00000868943, 0.00000876307, 0.00000880979, 0.00000884535, 0.00000887237, 0.000008893, 0.00000892388, 0.00000895126, 0.00000896755, 0.00000897347, 0.00000896949, 0.00000897682, 0.00000899002, 0.0000090105, 0.00000902765, 0.00000903489, 0.00000902334, 0.00000886029, 0.0000087031, 0.00000871315, 0.00000876957],
    [0.016493405, 0.016216645, 0.015949326, 0.015690558, 0.015438675, 0.015195702, 0.014968148, 0.014753445, 0.014536631, 0.014317057, 0.014096952, 0.013929044, 0.013839935, 0.013764498, 0.01364666, 0.01343539, 0.013176902, 0.012927115, 0.012666508, 0.012372377, 0.012026649, 0.010477597, 0.007396422, 0.003928497, 0.001134461, 0, 0.005288436, 0.010371365, 0.010127449, 0.009579419],
    [0.008028132, 0.008118583, 0.008200513, 0.008266638, 0.008303316, 0.008314448, 0.008291763, 0.008253756, 0.008204248, 0.008147454, 0.008105871, 0.008059902, 0.008000754, 0.007935642, 0.007878626, 0.007854968, 0.0078458, 0.007836542, 0.007826722, 0.007814015, 0.007812113, 0.007807354, 0.007805648, 0.007804465, 0.007793648, 0.007783263, 0.00772816, 0.007676684, 0.007626406, 0.007526221],
    [0.004514681, 0.00449665, 0.004478848, 0.004457689, 0.004427572, 0.004390196, 0.004346079, 0.004298291, 0.004248798, 0.004196607, 0.00414854, 0.004103155, 0.004062677, 0.00402725, 0.003993426, 0.00396365, 0.00393734, 0.003916685, 0.003898857, 0.003877148, 0.003849217, 0.003817593, 0.003790847, 0.003765264, 0.003735677, 0.003704885, 0.003653261, 0.003606926, 0.003563612, 0.003501063],
    [0.000275333, 0.000271237, 0.000267729, 0.000265025, 0.000263115, 0.000261786, 0.000261297, 0.000261305, 0.000261363, 0.000261202, 0.000260615, 0.000260246, 0.00026067, 0.000261275, 0.000261381, 0.000260545, 0.000258911, 0.000257121, 0.000255234, 0.000253159, 0.000250695, 0.000248358, 0.000246344, 0.000244432, 0.000242287, 0.000239778, 0.000236578, 0.000233074, 0.000227471, 0.000219148],
    [0.298804091, 0.300342068, 0.302130834, 0.304010608, 0.305914376, 0.307741401, 0.30996172, 0.312845128, 0.315939567, 0.318850888, 0.321118414, 0.323074894, 0.325118808, 0.32714266, 0.328977231, 0.330568483, 0.332188437, 0.333958422, 0.335781014, 0.337518039, 0.338993964, 0.340914135, 0.343480883, 0.346296888, 0.348935576, 0.350718109, 0.350275863, 0.349518483, 0.351069424, 0.353525215],
    [0.002141925, 0.002147243, 0.002153041, 0.0021572, 0.00215814, 0.002156843, 0.002152111, 0.002146057, 0.002138072, 0.002128944, 0.002123262, 0.002118116, 0.002111609, 0.002105722, 0.002099681, 0.002095882, 0.00208978, 0.002080867, 0.002071612, 0.002060968, 0.002051883, 0.00204061, 0.002027884, 0.002013759, 0.001995655, 0.001976227, 0.001943821, 0.001917676, 0.001895423, 0.001860836],
    [0.370511084, 0.371606373, 0.372242541, 0.372503068, 0.372400458, 0.371765038, 0.370225376, 0.367780394, 0.365135764, 0.36292903, 0.361558659, 0.360827347, 0.36009283, 0.359450197, 0.359033116, 0.358695515, 0.3583082, 0.357758848, 0.357094214, 0.356453933, 0.355950965, 0.355915835, 0.356427832, 0.356982068, 0.357217706, 0.356937495, 0.353899357, 0.351194285, 0.350804503, 0.350524205],
    [0.008823349, 0.00865811, 0.008508904, 0.008377052, 0.008268963, 0.008182479, 0.008119229, 0.008070982, 0.008028524, 0.007988983, 0.007945753, 0.007912814, 0.007897567, 0.007888564, 0.007880878, 0.007860391, 0.007835113, 0.00780645, 0.007775174, 0.007741143, 0.007697743, 0.007663959, 0.007639727, 0.007619765, 0.007596878, 0.007561355, 0.007484355, 0.007395253, 0.007296831, 0.007164906],
    [0.007170694, 0.006865491, 0.006690118, 0.006628026, 0.006661849, 0.006802561, 0.007213744, 0.007954562, 0.008814938, 0.009583086, 0.010095501, 0.010393913, 0.010671991, 0.010909866, 0.011098878, 0.01125941, 0.011350776, 0.011398475, 0.011445016, 0.011529723, 0.01170438, 0.01198777, 0.012370663, 0.012800392, 0.013221223, 0.013595908, 0.014004921, 0.014362861, 0.014443705, 0.014300738],
    [0.061149565, 0.058472797, 0.056006309, 0.053895283, 0.05225928, 0.051327791, 0.050824837, 0.050354771, 0.049852065, 0.049249813, 0.048612498, 0.04773982, 0.046641762, 0.04545786, 0.044348672, 0.043531575, 0.042946338, 0.042464096, 0.042042837, 0.04164808, 0.041281801, 0.0408806, 0.040451258, 0.039991472, 0.039489582, 0.039025996, 0.038630432, 0.038462212, 0.038343634, 0.038111449],
    [0.074043508, 0.073817288, 0.07354844, 0.073255876, 0.072914267, 0.072563142, 0.072157187, 0.071733261, 0.071275545, 0.0707897, 0.070330539, 0.069870579, 0.069450413, 0.069058028, 0.068719325, 0.068446606, 0.068239075, 0.068115189, 0.068013468, 0.067850579, 0.06756347, 0.067148012, 0.0667043, 0.066247051, 0.065761709, 0.065316825, 0.064691706, 0.06409942, 0.063299236, 0.062015685],
    [0.000927646, 0.000929984, 0.000933211, 0.000936583, 0.000939453, 0.000941831, 0.00094472, 0.000949052, 0.000953335, 0.000956237, 0.000957377, 0.000956176, 0.000953558, 0.000950095, 0.000946575, 0.000944903, 0.000944103, 0.000942929, 0.000941725, 0.000940735, 0.000940832, 0.000942586, 0.000945686, 0.000949352, 0.000952355, 0.000954248, 0.000951548, 0.000948791, 0.000946385, 0.000940032],
    [0.000565773, 0.000562887, 0.000560538, 0.000558861, 0.000558286, 0.000559218, 0.000561006, 0.000563064, 0.000565406, 0.000568238, 0.000570988, 0.000573901, 0.000576601, 0.000579485, 0.00058273, 0.000585229, 0.00058824, 0.000591571, 0.000595334, 0.000598618, 0.000601549, 0.000604545, 0.000609144, 0.000614237, 0.000618299, 0.000621065, 0.000619929, 0.000618537, 0.000622132, 0.00062928],
    [0.0000250829, 0.0000252697, 0.0000254459, 0.0000256196, 0.0000257825, 0.0000259179, 0.0000260527, 0.0000261956, 0.0000263325, 0.0000264841, 0.0000266105, 0.0000267434, 0.0000268837, 0.0000270151, 0.000027127, 0.0000271891, 0.0000272074, 0.0000271904, 0.0000271549, 0.0000271415, 0.0000271668, 0.0000272547, 0.0000273756, 0.0000274855, 0.0000275726, 0.0000276048, 0.0000274124, 0.0000271975, 0.0000270879, 0.0000268707],
    [0.046346115, 0.04668416, 0.047012253, 0.047314584, 0.047597648, 0.047803807, 0.048060773, 0.048367706, 0.048685492, 0.048998217, 0.049259934, 0.049616901, 0.050127212, 0.050667235, 0.051092593, 0.051269178, 0.051179726, 0.050969012, 0.050726998, 0.050534492, 0.050433753, 0.05050904, 0.050697921, 0.050916905, 0.051089866, 0.051103307, 0.050826719, 0.050461109, 0.049924442, 0.048993099],
    [0.0000222802, 0.0000224847, 0.0000227199, 0.0000229687, 0.0000232248, 0.0000234807, 0.0000237795, 0.0000241345, 0.0000244898, 0.0000247999, 0.0000250113, 0.0000251395, 0.0000252486, 0.0000253315, 0.0000253934, 0.0000254514, 0.0000255002, 0.0000255152, 0.0000255247, 0.0000255513, 0.0000256311, 0.0000257809, 0.0000259761, 0.000026187, 0.0000263652, 0.0000265004, 0.0000262206, 0.0000258963, 0.0000259749, 0.0000262331],
    [0.000689001, 0.000674513, 0.000660893, 0.000648237, 0.00063636, 0.000625019, 0.000614612, 0.000604869, 0.000595216, 0.000585448, 0.000575594, 0.000567548, 0.000562326, 0.000557694, 0.000551555, 0.000542378, 0.000531242, 0.000520341, 0.000509059, 0.000497329, 0.000485819, 0.000475158, 0.000465571, 0.000456548, 0.00044711, 0.000436873, 0.000424679, 0.000412388, 0.000397413, 0.000378113]
]

option = {

  tooltip: {
    trigger: 'axis',
   
    axisPointer: {
      type: 'cross',
      label: {
        backgroundColor: '#6a7985'
      }
    }
  },
  legend: {
      left: '3%',
      bottom:'0%',
    data: ['Alcoholic cardiomyopathy',
'Asbestosis',
'Chagas disease',
'Chronic obstructive pulmonary disease',
'Coal workers pneumoconiosis',
'Congenital heart anomalies',
'Endocarditis',
'Endocrine, metabolic, blood, and immune disorders',
'G6PD deficiency',
'Hypertensive heart disease',
'Interstitial lung disease and pulmonary sarcoidosis',
'Ischemic heart disease',
'Myocarditis',
'Non-rheumatic calcific aortic valve disease',
'Non-rheumatic degenerative mitral valve disease',
'Other cardiomyopathy',
'Other hemoglobinopathies and hemolytic anemias',
'Other non-rheumatic valve diseases',
'Other pneumoconiosis',
'Rheumatic heart disease',
'Silicosis',
'Thalassemias',]
  },
  toolbox: {
    feature: {
      saveAsImage: {}
    }
  },
  grid: {
    top: '10%',
    left: '3%',
    right: '3%',
    bottom: '12%',
    containLabel: true
  },
    title: {
    text: 'female_prevalence number',
     top:'3%',
     left: '42%'
  },
  xAxis: [
    { 
      type: 'category',
      boundaryGap: false,
      data: ['1990', '1991', '1992', '1993', '1994', '1995', '1996',
      '1997', '1998', '1999', '2000', '2001', '2002', '2003',
      '2004', '2005', '2006', '2007', '2008', '2009', '2010',
      '2011', '2012', '2013', '2014', '2015', '2016', '2017',
      '2018', '2019']
    }
  ],
  yAxis: [
    { max:'1',
      min:'0',
      type: 'value'
    }
  ],
  series: [
    {
      name: 'Alcoholic cardiomyopathy',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      areaStyle: {
        opacity: 0.8,
       
           
      },
      emphasis: {
        focus: 'series'
      },
      data:data[0],
       
    }, { name: 'Asbestosis',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      areaStyle: {
        opacity: 0.8,
     
      },
      emphasis: {
        focus: 'series'
      },
      data: data[1],       },
    {
      name: 'Chagas disease',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      areaStyle: {
        opacity: 0.8,
        
      },
      emphasis: {
        focus: 'series'
      },
      data:data[2],      },
     {
      name: 'Chronic obstructive pulmonary disease',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      areaStyle: {
        opacity: 0.8,
        
      },
      emphasis: {
        focus: 'series'
      },
      data:data[3],
      },
      
      
       {
      name: 'Coal workers pneumoconiosis',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      label: {
        show: true,
        position: 'top'
      },
      areaStyle: {
        opacity: 0.8,
        
      },
      emphasis: {
        focus: 'series'
      },
      data: data[4],
      },
     {
      name: 'Congenital heart anomalies',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      label: {
        show: true,
        position: 'top'
      },
      areaStyle: {
        opacity: 0.8,
        
      },
      emphasis: {
        focus: 'series'
      },
      data: data[5],
       },
    {
      name: 'Endocarditis',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      areaStyle: {
        opacity: 0.8,
         },
      emphasis: {
        focus: 'series'
      },
      data: data[6],   
    },
     {
      name: 'Endocrine, metabolic, blood, and immune disorders',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      areaStyle: {
        opacity: 0.8,
        
      },
      emphasis: {
        focus: 'series'
      },
      data: data[7],
       },
    {
      name: 'G6PD deficiency',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      areaStyle: {
        opacity: 0.8,
       
      },
      emphasis: {
        focus: 'series'
      },
      data: data[8], 
        },
    {
      name: 'Hypertensive heart disease',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      areaStyle: {
        opacity: 0.8,
       
      },
      emphasis: {
        focus: 'series'
      },
      data:data[9],   },
    {
      name: 'Interstitial lung disease and pulmonary sarcoidosis',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      label: {
        show: true,
        position: 'top'
      },
      areaStyle: {
        opacity: 0.8,
        
      },
      emphasis: {
        focus: 'series'
      },
      data:data[10],
   
         },
    {
      name: 'Ischemic heart disease',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      areaStyle: {
        opacity: 0.8,
        
      },
      emphasis: {
        focus: 'series'
      },
      data:data[11],  },
    {
      name: 'Myocarditis',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      areaStyle: {
        opacity: 0.8,
       
      },
      emphasis: {
        focus: 'series'
      },
      data: data[12],
      
      
    },
    {
      name: 'Non-rheumatic calcific aortic valve disease',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      areaStyle: {
        opacity: 0.8,
        
      },
      emphasis: {
        focus: 'series'
      },
      data: data[13],},
        {
      name: 'Non-rheumatic degenerative mitral valve disease',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      areaStyle: {
        opacity: 0.8,
       
      },
      emphasis: {
        focus: 'series'
      },
      data:data[14],
           },
    {
      name: 'Other cardiomyopathy',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      label: {
        show: true,
        position: 'top'
      },
      areaStyle: {
        opacity: 0.8,
        
      },
      emphasis: {
        focus: 'series'
      },
      data:data[15],   },
      {
      name: 'Other hemoglobinopathies and hemolytic anemias',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      areaStyle: {
        opacity: 0.8,
       
      },
      emphasis: {
        focus: 'series'
      },
      data:data[16],
           },
            {
      name: 'Other non-rheumatic valve diseasese',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      areaStyle: {
        opacity: 0.8,
       
      },
      emphasis: {
        focus: 'series'
      },
      data:data[17],
           },
            {
      name: 'Other pneumoconiosis',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      areaStyle: {
        opacity: 0.8,
       
      },
      emphasis: {
        focus: 'series'
      },
      data:data[18],
           },
                 {
      name: 'Rheumatic heart disease',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      areaStyle: {
        opacity: 0.8,
       
      },
      emphasis: {
        focus: 'series'
      },
      data:data[19],
           },
                 {
      name: 'Silicosis',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      areaStyle: {
        opacity: 0.8,
       
      },
      emphasis: {
        focus: 'series'
      },
      data:data[20],
           },
                 {
      name: 'Thalassemias',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      areaStyle: {
        opacity: 0.8,
       
      },
      emphasis: {
        focus: 'series'
      },
      data:data[21],
           },
  ]
}
 